package com.dianping.cat.home.dal.report;

import java.util.Date;
import org.unidal.dal.jdbc.AbstractDao;
import org.unidal.dal.jdbc.DalException;
import org.unidal.dal.jdbc.Readset;
import org.unidal.dal.jdbc.Updateset;

public class TopologyGraphDao extends AbstractDao {
/* 10 */   public TopologyGraph createLocal() { return new TopologyGraph(); }





/* 16 */   public int deleteByPK(TopologyGraph proto) throws DalException { return getQueryEngine().deleteSingle(TopologyGraphEntity.DELETE_BY_PK, proto); }




  public TopologyGraph findByPK(int keyId, Readset<TopologyGraph> readset) throws DalException {
/* 22 */     TopologyGraph proto = new TopologyGraph();

/* 24 */     proto.setKeyId(keyId);

/* 26 */     return (TopologyGraph)getQueryEngine().querySingle(TopologyGraphEntity.FIND_BY_PK, proto, readset);
  }






  public TopologyGraph findByPeriod(Date period, Readset<TopologyGraph> readset) throws DalException {
/* 35 */     TopologyGraph proto = new TopologyGraph();

/* 37 */     proto.setPeriod(period);

/* 39 */     return (TopologyGraph)getQueryEngine().querySingle(TopologyGraphEntity.FIND_BY_PERIOD, proto, readset);
  }








/* 49 */   protected Class<?>[] getEntityClasses() { return new Class[] { TopologyGraphEntity.class }; }



/* 53 */   public int insert(TopologyGraph proto) throws DalException { return getQueryEngine().insertSingle(TopologyGraphEntity.INSERT, proto); }





/* 59 */   public int updateByPK(TopologyGraph proto, Updateset<TopologyGraph> updateset) throws DalException { return getQueryEngine().updateSingle(TopologyGraphEntity.UPDATE_BY_PK, proto, updateset); }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/dal/report/TopologyGraphDao.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */